#ifndef _OPER_SQLITE3_H_
#define _OPER_SQLITE3_H_

#include"sqlite3.h"


int Sql_OpenDB(char *sql_fname);
int Sql_CloseDB();

int Sql_Put_d_key(unsigned int idlen, unsigned char *id, unsigned int dlen, unsigned char *d, unsigned int keylen, unsigned char *key);
int Sql_get_d_key(unsigned int idlen, unsigned char *id, unsigned int *dlen, unsigned char *d, unsigned int *keylen, unsigned char *key);
int Sql_Put_d(unsigned int idlen, unsigned char *id, unsigned int dlen, unsigned char *d);
int Sql_get_d(unsigned int idlen, unsigned char *id, unsigned int *dlen, unsigned char *d);

#endif